package hb.software.workermessage.web.spring.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import hb.software.message.domain.WorkerMessage;
import hb.software.message.service.WorkerMessageManager;
import hb.software.web.spring.controller.GenericController;


/** 
 * @ClassName: WorkerMessageController 
 * @Description: Controller of Message Module
 * @author YuanMingjie
 * @date May 29, 2020 1:59:13 PM 
 *  
 */
@Controller
@RequestMapping("/workermessage")
public class WorkerMessageController extends GenericController<WorkerMessage, Long, WorkerMessageManager> {

	WorkerMessageManager workerMessageManager;

	@Autowired
	public void setWorkerMessageManager(WorkerMessageManager workerMessageManager) {
		this.workerMessageManager = workerMessageManager;
		this.manager = this.workerMessageManager;
	}

	@RequestMapping(method = RequestMethod.GET, value = "/index.html")
	public String index() {
		String result = "/workermessage/index";
		return result;
	}

}
